//产品的类
export class Product{
    //构造函数,定义产品类所需要的属性
    constructor(
        public id:number,
        public title:string,
        public price:number,
        public des:string,
        public rating:number,
        public category:Array<string>
    ){}
}